package org.social.log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.sojoys.artifact.tools.SK_Plus;

/**
 * @author : DengYing
 * @CreateDate : 2017年12月29日 下午2:36:45
 * @Description ：角色注册日志
 */
public class RoleRegisterLog implements ILogger{
	private RoleRegisterLog() {
	}

	private static RoleRegisterLog ME = new RoleRegisterLog();

	public static RoleRegisterLog me() {
		return ME;
	}
	
	private static Logger log = LoggerFactory.getLogger("role_register_log");
	
	
	public void log(String uid,long pid,int channelId,int channelAppId,String serverId,String imei,String device,String osType,String osVersion){
		SK_Plus sb = SK_Plus.newSK_Plus();
		addField(sb, uid);
		addField(sb, pid);
		addField(sb, channelId);
		addField(sb, channelAppId);
		addField(sb, serverId);
		addField(sb, imei);
		addField(sb, device);
		addField(sb, osType);
		addField(sb, osVersion);
		log.info(sb.e());
	}
}
